package com.cn.web.controller.EM.report;

import com.alibaba.fastjson2.JSONObject;
import com.cn.bean.vo.EM.partRegt.BarkPar;
import com.cn.mapper.dao.db5.EM.ng.NGRequestDao;
import com.cn.mapper.dao.db5.EM.report.PcbReportDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@Transactional
@RequestMapping("/PcbReport")
public class PcbReportController {

    private final PcbReportDao pcbReportDao;

    @Autowired(required = false)
    public PcbReportController(PcbReportDao pcbReportDao) {
        this.pcbReportDao = pcbReportDao;
    }

    @RequestMapping("/getList")
    @ResponseBody
    public String insert(@RequestBody JSONObject jsonObject) {
        System.out.println("jsonObject:aaaaaaaaaaaaaaa" + jsonObject);
        String list = pcbReportDao.getList(String.valueOf(jsonObject));
        System.out.println(list);

        return list;

    }

}
